
import Vuex from 'vuex'
import state from './state'
import getters from './getters'
import mutations from './mutations'
import actions from './actions'
import * as search from './module/search'
import geo from './module/geo'
import home from './module/home'
// webpack 中 生产模式或开发
const createStore = () => {
  return new Vuex.Store({
    state,
    getters,
    mutations,
    actions,
    modules: {
      [search.name]: search,
      geo,
      home
    }
  })
}

export default createStore  

